import type { RouteRecordRaw } from 'vue-router'

/**
 * 自定义路由接口，非自动加载的路由在此定义
 */

const routes = [
    {
        path: '/auth',
        component: () => import('@/layouts/auth/index.vue'),
        meta: { guest: true },
        children: [
            {
                path: 'login',
                name: 'login',
                component: () => import('@/views/auth/login.vue'),
            },
            {
                path: 'register',
                name: 'register',
                component: () => import('@/views/auth/register.vue'),
            },
            {
                path: 'forgot_password',
                name: 'forgot_password',
                component: () => import('@/views/auth/forgot_password.vue'),
            },
        ],
    },
    {
        path: '/:any(.*)',
        name: 'notFound',
        component: () => import('@/views/errors/404.vue'),
    }

] as RouteRecordRaw[]

export default routes